<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>礼品分类</title>
 <jsp:include page="addComments.jsp"></jsp:include> 
 <jsp:include page="replys/listReply.jsp"></jsp:include>
 
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="../js/jquery-1.9.1.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jqPaginator.js"></script>
<script src="../comments/comments.js"></script>
<script src="../comments/replys/replys.js"></script>
<!-- Bootstrap -->

<link href="../css/bootstrap.min.css" rel="stylesheet" />
<link href="../comments/comments.css" rel="stylesheet" />

<style>
	.alllists {
		width: 100%;
	}
	.buttonSt{
		text-align: right;
	}
	#trTh th {
		text-align: center;
	}

</style> 

</head>
<body>
	<div class="container-fluid alllists">
		<div class="row-fluid">
			<div class="span12">
				<div id="tools" class="buttonSt">
					<button id="addComments" class="btn btn-primary btn-large" type="button"
						data-toggle="modal" >添加</button>
					<button id="deleteBtn" class="btn btn-large btn-danger"
						type="button">删除</button>
				</div>
				<div>
					<table id="commList" class="table table-bordered table-hover">
						<thead>
							<tr id="trTh">
								<th><input id="selectAll" class="checkbox" type="checkbox" /></th>
								<th>会员名称</th>
								<th>礼品名称</th>
								<th>评论内容</th>
								<th>客服评论</th>
								<th>物流评论</th>
								<th>回复</th>
								<th colspan="2">状态</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${pageResult.resultList}" var="comments">
								<tr>
									<td><input name="commId" id="commId" class="checkbox" type="checkbox" value="${comm.id}" />
									</td>
									<td>${comments.hrtMemberName}</td>
									<td>${comments.gdeName}</td>
									<td>${comments.content}</td>
									<td>${comments.servicerComm}</td>
									<td>${comments.logistics}</td>
									
									<td><button id="viewCommentDir" objId="${comments.id}"
											class="btn btn-sm-block btn-sm-info" data-toggle="modal">回复</button>
									</td>
									<td><button name="editBtn" objId="${comments.id}" id="commBtn"
											class="btn btn-sm-block btn-sm-info">修改</button>
									</td>
									<td>
										<button id="commBtn" name="checkBtn" objId="${comm.id}"
											class="btn btn-sm-block btn-sm-info checkBtn">查看</button></td>
								</tr>
							</c:forEach>
						<tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
	<div style="text-align: center;">
		<ul class="pagination" id="pagination2"></ul>
	</div>
	<div style="text-align: center;">
		<div id="pageResult">
			<input id="pageCount" type="hidden" value="${pageResult.pageCount}" />
			<input id="totalCount" type="hidden" value="${pageResult.totalCount}" />
			<input id="pageIndex" type="hidden" value="${pageResult.pageIndex}" />
			<input id="pageSize" type="hidden" value="${pageResult.pageSize}" />
		</div>
		<!-- footer -->

	</div>

</body>

</html>